
use data1993,clear

****Table A11 - Panel A - 1993-Female-difference in birthyear betweent two years<2********
	*** dummy*****
	foreach var of varlist  readability mathability diploma1 diploma2 educationyrs {
	eststo: xi: quietly ivreg2 `var' d_interact1 ethnicity_head buddhist catholic i.birthyear  birthprovince2-birthprovince29 if t1==1&sex==0&north==1&move_age>15&d_year<2,cluster(birthprovince commune) small
	}

	esttab using "$directory\outcome1.rtf", compress b(3) keep(d_interact1) se(3)   star(* 0.10 ** 0.05 *** 0.01)  nogaps parentheses  replace   ar2
	eststo clear

	
	*****years of occupation*****
	foreach var of varlist  readability mathability diploma1 diploma2 educationyrs {
	eststo: xi: quietly ivreg2 `var' yr_exposed ethnicity_head buddhist catholic i.birthyear  birthprovince2-birthprovince29  if $by2461 &sex==0&north==1&move_age>15&d_year<2,cluster(birthprovince commune) small
	}

	esttab using "$directory\outcome1.rtf", compress b(3) keep(yr_exposed) se(3)   star(* 0.10 ** 0.05 *** 0.01)  nogaps parentheses  append   ar2
	eststo clear

	
